package com.wei.czz.common.vo.annex;

import com.wei.czz.common.jsr303.group.Save;
import com.wei.czz.common.jsr303.group.Update;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2024-01-18 18:09:33
 * className: AnnexVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class AnnexVo extends BaseEntity {

    /**
     * 附件动态配置前置
     */
    @NotNull(message = "附件动态配置前置不能为空", groups = { Save.class, Update.class })
    @Valid
    private AnnexPreVo annexPreVo;

    /**
     * 分组列表
     */
    @NotNull(message = "分组列表不能为空", groups = { Save.class, Update.class })
    @Valid
    private List<AnnexGroupVo> groupList;

    /**
     * 配置列表
     */
    @NotNull(message = "字段列表不能为空", groups = { Save.class, Update.class })
    @Valid
    private List<AnnexConfigVo> configList;

}
